<template>
  <div class="in-title">
    <div class="title-icon"></div>
    <h2>
      {{ title }}
    </h2>
    <slot name="detail"></slot>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      default: '',
      type: String,
    },
  },
}
</script>

<style lang="less" scoped>
.in-title {
  margin: 1rem 0;
  overflow: hidden;
  //   background-color: skyblue;
  height: 30px;
  display: flex;
  align-items: center;
  .title-icon {
    float: left;
    margin-right: 0.625rem;
    height: 80%;
    width: 0.3rem;
    border-radius: 0.3rem;
    background-color: @color-blue;
  }
  h2 {
    color: @color-blue;
  }
}
</style>
